<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>购物车</title>
    <link rel="stylesheet" href="../css/cartlist.css">
    <link rel="stylesheet" href="../css/reset.css">
    <script src="../script/cartlist_module.js" type="module"></script>
</head>

<body>
    <!--main-->
    <div id="container" class="cart">
        <div class="w">
            <!--全部商品-->
            <div class="cart-top" style="display: block;">
                <div class="cart-top-left">
                    <a href=""><em>全部商品</em></a>
                </div>
                <div class="footline">
                    <div class="line"></div>
                </div>
            </div>
            <!--包裹购物车-->
            <div class="cart-wrap" style="display: block;">
                <div class="w">
                    <div id="jd-cart">
                        <div class="cartmain">
                            <div class="cart-thead">
                                <div class="cart-col t-checkbox">
                                    <div class="cart-checkbox">
                                        <input type="checkbox" checked="" name="" id="" class="allsel" value="" /> 全选
                                    </div>
                                </div>
                                <div class="cart-col t-goods">商品</div>
                                <div class="cart-col t-props"></div>
                                <div class="cart-col t-prices">单价(元)</div>
                                <div class="cart-col t-quantity">数量</div>
                                <div class="cart-col t-sum">小计(元)</div>
                                <div class="cart-col t-action">操作</div>
                            </div>
                            <div id="cart-list">
                                <div class="cart-item-list">
                                    <div class="cart-tbody">
                                        <!-- 显示购物车列表 -->
                                        <div class="item-list">
                                            <div class="goods-item goods-item-sele" style="display: none;">
                                                <div class="goods-info">
                                                    <div class="cell b-checkbox">
                                                        <div class="cart-checkbox">
                                                            <input type="checkbox" checked="" name="" id="" value="" />
                                                            <span class="line-circle"></span>
                                                        </div>
                                                    </div>
                                                    <div class="cell b-goods">
                                                        <div class="goods-name">
                                                            <div class="goods-pic">
                                                                <a href=""><img src="" alt="" /></a>
                                                            </div>
                                                            <div class="goods-msg">
                                                                <div class="goods-d-info">
                                                                    <a href="">1111111111111</a>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="cell b-props">
                                                        <div class="prop-text"></div>
                                                    </div>
                                                    <div class="cell b-price">
                                                        <strong>99.99</strong>
                                                        <div class="sales-promotion-dropdown">
                                                        </div>
                                                    </div>
                                                    <div class="cell b-quantity">
                                                        <div class="quantity-form">
                                                            <a class="quantity-down" href="javascript:void(0)">-</a>
                                                            <input type="text" value="1" />
                                                            <a class="quantity-add" href="javascript:void(0)">+</a>
                                                        </div>
                                                    </div>
                                                    <div class="cell b-sum">
                                                        <strong>99.99</strong>
                                                    </div>
                                                    <div class="cell b-action">
                                                        <a href="javascript:void(0)">删除</a>
                                                    </div>
                                                    <!-- 删除提示框 -->
                                                    <div class="del-pro">
                                                        <a href="javascript:;" class="closeBtn">X</a>
                                                        <p>确认要删除商品吗？</p>
                                                        <div class="del-sure">确&nbsp;定</div>
                                                        <div class="del-close closeBtn">取&nbsp;消</div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div id="cart-floatbar">
                        <div class="select-all">
                            <div class="cart-checkbox">
                                <input type="checkbox" checked="" name="" id="" class="allsel" value="" /> 全选
                            </div>
                        </div>
                        <div class="operation">
                            <a href="javascript:void(0)">删除选中的商品</a>
                        </div>
                        <div class="toolbar-right">
                            <div class="btn-area">
                                <a href=""></a>
                            </div>
                            <div class="price-sum">
                                <span class="txt">总价（不含运费）：</span>
                                <span class="totalprice">￥0.00</span>
                                <span class="txt">已节省：</span>
                                <span class="totalsave">-￥0.00</span>
                            </div>
                            <div class="amount-sum">
                                已选择
                                <em>0</em> 件商品
                                <b></b>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 遮罩层 -->
    <div class="mask"></div>
</body>

</html>
<!-- 
    1.渲染购物车商品列表。
        - 获取本地存储里面的数据进行渲染。 
-->